<?php
include "product_list.class.php";

?>
<meta charset="UTF-8">
<head>
<script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/admin.js"></script>

<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" />
<!--                       CSS                       -->
<!-- Reset Stylesheet -->
<link rel="stylesheet" href="resources/css/reset.css" type="text/css" media="screen" />
<!-- Main Stylesheet -->
<link rel="stylesheet" href="resources/css/style.css" type="text/css" media="screen" />
<!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
<link rel="stylesheet" href="resources/css/invalid.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../css/base.css" type="text/css" media="screen" />
</head>
<body style="background:none; margin:30px 30px 0 0;">
	<div class="content-box-header">
        <h3 style="margin:0;">商品上架管理</h3>
        <div class="clear"></div>
    </div><br>
    <p>
		<table class="goods_cart_from">
			<tr>
				<td class="fb" style="background:#F8FCFC!important;">商品名</td>
				<td class="fb" style="background:#F8FCFC!important;">价格</td>
				<td class="fb" style="background:#F8FCFC!important;">上架时间</td>
				<td class="fb" style="background:#F8FCFC!important;">上架</td>
				<td class="fb" style="background:#F8FCFC!important;">推荐</td>
				<td class="fb" style="background:#F8FCFC!important;">操作</td>
			</tr>
		<?php
		for($n = 0;$n < count($info);$n++){ ?>
			<tr>
				<td><p class="goods_choice"><a href="#"><img src="/<?php echo $info[$n]['path1']?>" width="70" height="80" alt="" class="fl"></a><a href="#" class="fl no_url c999"><?php echo '<a href="product_ad.php?good='.$info[$n]['p_id'].'">'.$info[$n]['name'].'</a>';?></a></p></td>
				<td>￥<?php echo $info[$n]['price']?></td>
				<td><?php echo $info[$n]['create_time']?></td>
				<td><input type="checkbox" value="1" name="shelves" class="shelves" <?php if($info[$n]['state']>0)echo "checked='checked'";?>><input type="hidden" class="this_id" value="<?php echo $info[$n]['id'];?>"></td>
				<td><input type="checkbox" value="1" name="recommend" class="recommend" <?php if($info[$n]['state']==2)echo "checked='checked'";?>><input type="hidden" class="this_id" value="<?php echo $info[$n]['id'];?>"></td>
				<td><a href="?del=<?php echo $info[$n]['id']?>" onclick="return delOk();">删除</a></td>
			</tr>

		<?php
		}
		?>
		</table>
	</p>
</body>